/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GeneralTesting;

import java.awt.Point;
import java.util.TimerTask;

/**
 *
 * @author Evan
 */
public class ATimer extends TimerTask
{

  private AnimationTest at;

  public ATimer(AnimationTest at)
  {
    this.at = at;
  }

  public void run()
  {
    Point p = at.getButton().getLocation();
    Point newP = new Point(p.x + 1, p.y - 1);
    at.getButton().setLocation(newP);
    at.repaint();
  }
}
